<?php
/**
 * Return form with specified name.
 *
 * @author Anton Danilchenko <anton.danilchenko@gmail.com>
 */
class Templum_Helper_Form implements Templum_Helper_Interface {
	/**
	 * Return result of current helper.
	 *
	 * @param string $sData: processing string
	 * @param array $aParams: 0 - form name
	 */
	public function handle(&$sData, $aParams=array()) {
		// only for use with Probus framework
		if (class_exists('Probus') AND is_string($sData) AND ''!=$sData) {
			// processing data
			$sData = Probus::Form($sData, $aParams)->get();
		}
	}
}